package com.wbt.bambootown.ui.activity;


import android.widget.TextView;

import com.gyf.barlibrary.ImmersionBar;
import com.wbt.bambootown.FrameApp;
import com.wbt.bambootown.R;
import com.wbt.bambootown.utils.ActivityManagerUtil;
import com.wbt.bambootown.utils.EventCenter;

import butterknife.BindView;
import butterknife.OnClick;

public class FarmIntroduceActivity extends BaseActivity {

    @BindView(R.id.tv_name)
    TextView mTvName;
    @BindView(R.id.tv_introduce)
    TextView mTvIntroduce;

    @OnClick(R.id.iv_back)
    public void onClick(){
        ActivityManagerUtil.create().finishActivity();
    }


    @Override
    public void initStatusBar(ImmersionBar immersionBar) {
        immersionBar
                .fitsSystemWindows(true)
                .statusBarColor(R.color.theme_color)
                .init();
    }

    @Override
    public void initView() {
        mTvName.setText(FrameApp.farm.getName());
        mTvIntroduce.setText(FrameApp.farm.getIntroduce());
    }

    @Override
    public void initData() {

    }

    @Override
    public Object getContentView() {
        return R.layout.activity_farm_introduce;
    }

    @Override
    public boolean isApplyEventBus() {
        return false;
    }

    @Override
    public boolean isApplyButterKnife() {
        return true;
    }

    @Override
    public void onEventCome(EventCenter eventCenter) {

    }
}
